/**
 * Project Name:Micro-Services-RPC-API
 * File Name   :Result.java
 * Package Name:com.micro.services.rpc
 * Date:2015-9-9下午2:19:01
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.rpc;

import java.io.Serializable;
import java.util.Map;

/**
 * ClassName:Result <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015-9-9 下午2:19:01 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.com
 * @since   :JDK 1.7
 * @see 	 
 */
public interface Result extends Serializable
{
	
	Object getValue();
	
	int getResultStatusCode();

	Map<String,Object> getAttachments();
	
	Object getAttachment(String key);
	
	Throwable getException();
	
}